<?php

namespace App\Exports;

use App\Models\Admin\Withdraw;
use Maatwebsite\Excel\Concerns\FromCollection;

class WithdrawExport implements FromCollection
{
    private $data;

    public function __construct($data)
    {
        $this->data = $data;
    }

    /**
    * @return \Illuminate\Support\Collection
    */
    public function collection()
    {
        $title = ["申请时间", "会员ID", "平台姓名", "持卡人", "持卡人手机", "申请提现金额", "实际应到账", "银行名称", "开户行信息", "银行卡号", "状态", "审核时间"];
        $data = $this->data;

        return collect([
            $title,
            $data
        ]);
    }
}
